home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / ezzcomm.zip / DIALSMRT.T < prev    next >
Text File  |  1991-02-16  |  3KB  |  71 lines

  1.  : EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
  2.  : Licensed for use at your own risk without fee. Altered versions,
  3.  : when distributed, must be clearly marked as altered and accompanied
  4.  : by the originals.
  5.  ife "dT||!%telno" fail;ife r nolog close;kill
  6.  ena -dfEKS!abcilnptuvwzZ ha both
  7.  display stat=off noinhibit nodumb vt100 8bit
  8.  pf60 ph0 pp70 pt4 z pp50 pt100 pB2 set blankfill " " sets s9 %telno
  9.  pat;pat 0 ERROR;pat 1 BUSY
  10.  pat 2 "NO DIALTONE";pat 3 "NO DIAL TONE"
  11.  pat 4 "NO ANSWER";pat 5 "NO CARRIER"
  12.  pat 9c "CONNECT" "@pat 10i \n"
  13.  pat 11c " 300" "@set z9 300"
  14.  pat 12c " 600" "@set z9 600"
  15.  pat 13c " 1200" "@set z9 1200"
  16.  pat 14c " 2400" "@set z9 2400"
  17.  pat 15c " 4800" "@set z9 4800"
  18. next:
  19.  bye;speed 2400;pat 10c "";split s9 + "";sets s9 %z1;split z0 "." "";set z9 300
  20.  put "ATD%mprefix\&%z0\&%msuffix"
  21.  pf60 wait -f60;if 10 speed z9;sets telno %z0 pf30 display nostat=off;cls;queue delete;ki create -+ %n9/ZC%d%ano.LOG;return
  22.  if 1||2||3 ife %s9 goback next;pi45 pat;bye;fail     :modem detects busy
  23.  :if 1||2||3||5 ife %s9 goback next;pi45 pat;bye;fail :modem doesn't see 'busy'
  24.  pi0 set telno "" queue delete;pat;bye;fail
  25. init:
  26.  set msuffix "\r";if c return
  27.  bye; display stat=off;speed 2400 ena -8g;handshake both
  28.  pat; pat 0i "OK\r\n";pat 1i "ERROR\r\n"
  29.  put "ATZ\r";wait -f15
  30.  : note: '\\' will send '\' to modem
  31.  put "ATM0V1X4&C1&D2&S1&T5\r";wait -f15
  32.  put "ATE0S0=0S2=255S6=6S10=6\r";wait -f15
  33.  pat;return
  34.  :
  35.  :Command  Description
  36.  :-------  --------------------------------------------------------
  37.  :  E0     eliminate echoing of commands
  38.  :  M0     Turn off speaker (M3 if you want to hear the phone ring)
  39.  :  V1     Result codes rather than numbers
  40.  :  X4     Connect message with bps rate specified
  41.  :  &C1    Request proper Carrier Detection
  42.  :  &D2    Disconnect and return to command state when DTR drops
  43.  :  &S1    Request proper DSR indication (as per EIA RS232C)
  44.  :  &T5    do not grant remote digital loop for remote modems(UUUUU stuff)
  45.  :  S0=0   Do not answer the phone
  46.  :  S2=255 Disable +++ escape, to avoid problems when we type +++ or
  47.  :         the remote types +++ and we echo it
  48.  :  S6=6   Wait up to 6 Seconds for Dial Tone
  49.  :  S10=6  Little if any wait for carrier to return
  50.  :
  51.  : Guidelines which apply to all modems:
  52.  :
  53.  : o   The  modem must  be set to  react  to  the  lowering of DTR  by
  54.  :     hanging  up(placing  phone  on hook)  and  reverting to command
  55.  :     state without re-initializing its settings.
  56.  : o   The modem should be set to recognize BUSY if at all possible.
  57.  : o   The modem should be set to recognize a lack of dial tone  if at
  58.  :     all possible.
  59.  : o   The  modem  should  be set  to  recognize NO  ANSWER if at  all
  60.  :     possible.
  61.  : o   The modem should not be  set  to attempt  recognition of  voice
  62.  :     connections.
  63.  : o   The modem  should  not be set to grant remote digital loop  for
  64.  :     remote modems.  If  you  see strings  of uppercase U's(UUUUUU),
  65.  :     you've probably left this enabled.
  66.  : o   If the 'time to wait before  recognizing carrier'  value is too
  67.  :     small, it will result in  false carrier  detection on connects.
  68.  :     If you observe carrier being detected  and then lost again very
  69.  :     soon  afterward,  or if your  modem  connects  at  300bps to  a
  70.  :     high-speed modem, try adjusting this value.
  71.